package bman.filecopy;

import javax.swing.SwingUtilities;

public class FC
{

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception
	{
		System.out.println("args: "+args.length);
		if(args.length == 0)
		{
			SwingUtilities.invokeLater(new Runnable()
			{
				public void run()
				{
					FileCopy inst = new FileCopy();
					inst.setLocationRelativeTo(null);
					inst.setVisible(true);
				}
			});
		}
		else
		{
			FileSys fs = new FileSys(args[0],Integer.parseInt(args[1]));
			System.out.println("Started File Copy Server.");
		}
	}
}
